﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script type="text/javascript">
        function showDiv() {
            document.getElementsByTagName("body")[0].innerHTML = "";
            for (var i = 0; i < 20; i++) {
                var posX = Math.random();
                posX = posX * 1000;
                posX = Math.floor(posX);
                var posY = Math.random();
                posY = posY * 1000;
                posY = Math.floor(posY);
                var red = Math.random() * 1000;
                red = Math.floor(red);
                red %= 255;
                red = red.toString(16);
                var green = Math.random() * 1000;
                green = Math.floor(green);
                green %= 255;
                green = green.toString(16);
                var blue = Math.random() * 1000;
                blue = Math.floor(blue);
                blue %= 255;
                blue = blue.toString(16);
                var color = "#" + red + green + blue;
                var width = Math.random() * 100;
                width = Math.floor(width);
                var height = Math.random() * 100;
                height = Math.floor(height);
                var divel = document.createElement("div");
                divel.style.position = "absolute";
                divel.style.width = width + "px";
                divel.style.height = height + "px";
                divel.style.top = posY + "px";
                divel.style.left = posX + "px";
                divel.style.background = color;
                document.body.appendChild(divel);
            }
        }


        var timer = setInterval("showDiv()", 1);
    </script>
</head>
<body id="b">

</body>
</html>
